package business.other.punish.impl;

import business.other.punish.HResourcesPunishInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import other.domain.HResourcesPunishInfo;
import other.domain.HResourcesPunishInfoCriteria;
import other.mapper.HResourcesPunishInfoMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/17.
 */
@Service(value = "hResourcesPunishService")
public class HResourcesPunishInfoServiceImpl implements HResourcesPunishInfoService{
    @Autowired
    HResourcesPunishInfoMapper hResourcesPunishInfoMapper;
    @Override
    public List<HResourcesPunishInfo> getHResourcesPunishInfo() {
        HResourcesPunishInfoCriteria criteria = new HResourcesPunishInfoCriteria();
        criteria.createCriteria().getAllCriteria();
        return hResourcesPunishInfoMapper.selectByExample(criteria);
    }
}
